import Vue from "vue";
import Router from "vue-router";
import Home from "./Home/Home";
import AboutHome from "./About/Home";
import RegisterHomer from "./Registration/Home";
import TeamHome from "./Team/Home";
import ContactHome from "./Contact/Home";
import NewsHome from "./News/Home";
import NewsDetails from "./News/Details";

Vue.use(Router);

export default new Router({
  mode: "history",
  base: process.env.BASE_URL,
  routes: [
    {
      path: "/",
      name: "Home",
      component: Home
    },
    {
      path: "/about",
      name: "AboutHome",
      component: AboutHome
    },
    {
      path: "/register",
      name: "RegisterHomer",
      component: RegisterHomer
    },
    {
      path: "/team",
      name: "TeamHome",
      component: TeamHome
    },
    {
      path: "/contact",
      name: "ContactHome",
      component: ContactHome
    },
    {
      path: "/news",
      name: "NewsHome",
      component: NewsHome
    },
    {
      path: "/newsdetail",
      name: "NewsDetails",
      component: NewsDetails
    }
  ]
});
